package de.fhaugsburg.games.boardgames.scrabble.scrabbleboard;


public class ScrabbleSquareDetails {
	
	private SquareMultiplier squareModifier;
	private LetterPiece pieceFixed;
	
	
	/**
	 * constructor
	 * @param m
	 */
	public ScrabbleSquareDetails(SquareMultiplier m) {
		this.squareModifier = m;
		this.pieceFixed = null;			//no letter at this position at start
	}
	
	
	
	
	/**
	 * return the enum type
	 * @return
	 */
	public SquareMultiplier getDetails(){
		return squareModifier;
	}
	
	
	/**
	 * multiplier for the whole word
	 * @return
	 */
	public int getWordMultiplier() {
		return squareModifier.getWordMultiplier();
	}
	
	
	
	/**
	 * multiplier for current letter
	 * @return
	 */
	public int getLetterMultiplier() {
		return squareModifier.getLetterMultiplier();
	}
	
	
	public String getSymbol(){
		return squareModifier.getSymbol();
	}
	
	
	/**
	 * fixes a letter at this position
	 * @param piece
	 */
	public void setPieceFixed(LetterPiece piece) {
		this.pieceFixed = piece;
	}
	
	
	
	/**
	 * return the piece fixed at this location
	 * @return
	 */
	public LetterPiece getPieceFixed(){
		return this.pieceFixed;
	}
	
}
